<template>
    <section>
        <div style="padding: 15px 0px;">
            <div style="display: flex; height: 100px;">
                <transition name="el-fade-in-linear">
                    <div v-show="show" class="transition-box" style="background-color: #00C0EF;">
                        <div class="font-box">30</div>
                        <div style="padding: 7px 0px">离线</div>
                    </div>
                </transition>
                <transition name="el-fade-in">
                    <div v-show="show" class="transition-box" style="background-color: #00A65A;">
                        <div class="font-box">0</div>
                        <div style="padding: 7px 0px">离线</div>
                    </div>
                </transition>
                <transition name="el-fade-in">
                    <div v-show="show" class="transition-box" style="background-color: #F39C12;">
                        <div class="font-box">30</div>
                        <div style="padding: 7px 0px">温度</div>
                    </div>
                </transition>
                <transition name="el-fade-in">
                    <div v-show="show" class="transition-box" style="background-color: #DD4B39;">
                        <div class="font-box">30</div>
                        <div style="padding: 7px 0px">系统连接数</div>
                    </div>
                </transition>
            </div>
        </div>
        <el-button @click="show = !show">Click Me</el-button>
    </section>
</template>

<script>
    export default {
        data: () => ({
            show: true
        })
    }
</script>

<style>
    .transition-box {
        margin-bottom: 10px;
        width: 400px;
        height: 100px;
        border-radius: 15px;
        text-align: right;
        color: #fff;
        padding: 25px 40px;
        box-sizing: border-box;
        margin-right: 20px;
        margin-left: 2px;
    }
    .font-box {
        font-size: 22px;
        font-weight:bold;
    }
    .font-title {

    }
</style>